home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Disktools / HFMounter V2.1 / Install_HFM < prev    next >
Text File  |  1996-09-26  |  13KB  |  437 lines

  1. ;$VER:Script for HFMounter 2.1
  2. ;********************************************************************************
  3. ;
  4. ; Read All System information
  5. ;
  6. ;********************************************************************************
  7. (set osver (/ (getversion "LIBS:version.library") 65536))
  8.  
  9. ( if (= osver 37)  (set workbench "2.0"))
  10.  
  11. ( if (= osver 38)  (set workbench "2.1"))
  12.  
  13. ( if (= osver 39)  (set workbench "3.0"))
  14.  
  15. ( if (= osver 40)  (set workbench "3.1"))
  16.  
  17. ( if (= osver 41)  (set workbench "4.0"))
  18.  
  19.  
  20. (run "type >RAM:lan EnvArc:sys/locale.prefs opt h")
  21.  
  22. (set runstring (cat "search" " RAM:lan "))
  23.  
  24. (set english "")  (set german  "")
  25.  
  26. (set runstring1 (cat runstring "\"deutschland\""))   (if (= (run runstring1) 0) (set german1 "Deutsch"))
  27.  
  28. (set runstring1 (cat runstring "\"english\""))   (if (= (run runstring1) 0) (set english1 "English"))
  29.  
  30. (welcome "    HFMounter Installation\n")
  31.  
  32. ;********************************************************************************
  33. ;
  34. ;ASK DEFAULT LANG
  35. ;
  36. ;********************************************************************************
  37. (set #langQuestion (cat "The following were found in Locale:\n\n" english1 "\n"german1"\n\nSelect one of the installers supported Languages."
  38.                    )
  39. )
  40.  
  41. (set LAN (askchoice (choices "German (Deutsch)" "English"
  42.                          (prompt #langQuestion)
  43.                          (help "Select a Language")
  44.                          (default lang)
  45.                     )
  46.          )
  47. )
  48.  
  49. (set @hfm-dest "SYS:C/")
  50.  
  51. ;********************************************************************************
  52. ;
  53. ;English Information
  54. ;
  55. ;********************************************************************************
  56.  
  57.  
  58. (set #Intro-Txt (cat "\n\nWelcome to \n\n"
  59.                      "HFMounter 2.1\n"
  60.                      "Hard Disk Install Script\n\n"
  61.                      "HFMounter is ©1996 by SuicideSoft\n\n"
  62.                 )
  63. )
  64.  
  65. (set #MinReqOS (cat "The following are the MINIMUM REQUIREMENTS!\n"
  66.                     "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  67.                     "Kickstart 2.1, **You only have " workbench "**\n"
  68.                )
  69. )
  70.  
  71. (set #Path-Txt (cat "Select the target directory for HFM."
  72.                )
  73. )
  74.  
  75. (set #Path-Help (cat "\nThis section lets you choose the\n"
  76.                      "target directory to install HFMounter 2.1 in.\n\n"
  77.                      "Default is SYS:C/\n\n\n"
  78.                  @askdir-help
  79.                 )
  80. )
  81.  
  82. (set #Copyfile-txt (cat "Copying HFM to "
  83.                    )
  84. )
  85.  
  86. (set #copycat-txt (cat "Copying Catalog-file to locale:"
  87.                   )
  88. )
  89.  
  90. (set #devcopy-txt (cat "Copying fmsdisk.device to devs:"
  91.                   )
  92. )
  93.  
  94. (set #devcopy-help (cat "\nThis section installs the fmsdisk.device\n"
  95.                         "in your system's devs: directory"
  96.                    )
  97. )
  98.  
  99. (set #mountl-txt (cat "\nCopying HF-Mountlist to devs:\n"
  100.                 )
  101. )
  102.  
  103. (set #mountl-help (cat "\nThis mountlist consists of the\n"
  104.                        "entries for 12  HF-Units. The programm\n"
  105.                        "needs it in devs:\n"
  106.                   )
  107. )
  108.  
  109. (set #bgui-txt (cat "\nCopying BGUI-Library to LIBS:\n"
  110.                )
  111. )
  112.  
  113. (set #bgui-help (cat "\n The BGUI-Library is responsible for the\n"
  114.                      "neat GUI of HFMounter. Destination is LIBS:\n"
  115.                 )
  116. )
  117.  
  118.  
  119. (set #Pathdriver-Txt (cat "Select the target directory for \n"
  120.                           "the example dosdriver."
  121.                      )
  122. )
  123.  
  124. (set #Pathdriver-Help (cat "\nThis section lets you choose the target directory\n"
  125.                            "to install an example dosdriver in.\n\n"
  126.                            "Default is SYS:storage/dosdrivers/\n\n\n"
  127.                        @askdir-help
  128.                       )
  129. )
  130.  
  131. (set #driver-txt (cat "\n Copying example-dosdriver\n"
  132.                  )
  133. )
  134.  
  135.  
  136. (set #driver-help (cat "\n An example dosdriver will be copiied\n"
  137.                        " that may be duplicated and renamed.\n\n"
  138.                        " Infos about using dosdrivers in AmigaOS dos-manual\n"
  139.                   )
  140. )
  141.  
  142. (set #Pathguide-Txt (cat "Select the target directory for HFM_e.guide."
  143.                     )
  144. )
  145.  
  146. (set #Pathguide-Help (cat "\nThis section lets you choose the "
  147.                           "target directory to install HFM_e.guide in.\n\n"
  148.                           "Default is locale:help/deutsch/\n\n\n"
  149.                       @askdir-help
  150.                      )
  151. )
  152.  
  153. (set #guide-txt (cat "\n Copying Amigaguide document to: \n\n"
  154.                 )
  155. )
  156.  
  157. (set #guide-help (cat "\n This section copies the documentation in amigaguide-\n"
  158.                       " format in a directory of your choice.\n"
  159.                       " In case you are uncertain about anything in HFMounter,\n"
  160.                       " you should refer to this helptext.\n"
  161.                  )
  162. )
  163.  
  164. (set #USER-STARTUP-TXT (cat "\n Decide now where the Unit-files for HFMounter\n"
  165.                             " should reside. Remember that you may need a\n"
  166.                             " maximum diskspace of about 11 MB for it."
  167.                        )
  168. )
  169.  
  170. (set #Assign-Help-Txt (cat "\n One additional entry of three rows will make your\n "
  171.                            " user-startup creating the needed ASSIGN for HFMounter\n"
  172.                       @startup-help
  173.                      )
  174. )
  175.  
  176. ;********************************************************************************
  177. ;
  178. ;German Information
  179. ;
  180. ;********************************************************************************
  181. (if (= LAN 0)
  182.  
  183. (
  184.  
  185. (set #Intro-Txt (cat"\n\nWillkommen zum \n\n"
  186.                     "HFMounter 2.1\n"
  187.                     "Hard Disk Install Script\n\n"
  188.                     "HFMounter ist ©1996 von SuicideSoft\n\n"
  189.                 )
  190. )
  191.  
  192. (set #MinReqOS (cat "Das Folgende ist MINIMAL erforderlich\n"
  193.                     "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  194.                     "Kickstart 2.1, **Du hast nur " workbench "**\n"
  195.                )
  196. )
  197.  
  198. (set #Path-Txt (cat "Bestimme das Zielverzeichnis\n"
  199.                     "         fuer HFM 2.1         \n"
  200.                )
  201. )
  202.  
  203. (set #Path-Help (cat "\nHier kannst Du das Zielverzeichniss\n"
  204.                      "fuer den HFMounter 2.1 angeben.\n\n"
  205.                      "      Default ist SYS:C/       \n\n\n"
  206.                  @askdir-help
  207.                 )
  208. )
  209.  
  210. (set #Copyfile-txt (cat "Kopiere HFM nach "
  211.                    )
  212. )
  213.  
  214. (set #Copycat-txt (cat "Kopiere deutsches Catalogfile nach locale:catalogs/deutsch/"
  215.                   )
  216. )
  217.  
  218. (set #copycat-help (cat "\nHier kannst Du Dich fuer das Deutsche Sprachfile fuer\n"
  219.                         "HFMounter entscheiden, es wird nach Localae:catalogs/deutsch\n"
  220.                         "kopiert und beim naechsten Start von HFMounter eingelesen"
  221.                    )
  222. )
  223.  
  224. (set #devcopy-txt (cat "Kopiere das fmsdisk.device nach devs:"
  225.                   )
  226. )
  227.  
  228. (set #devcopy-help (cat "\nHier wird das fmsdisk.device installiert\n"
  229.                         "Es gehört ins DEVS: Verzeichnis"
  230.                    )
  231. )
  232.  
  233. (set #mountl-txt (cat "\nKopiere die HF-Mountlist nach Devs:\n"
  234.                 )
  235. )
  236.  
  237. (set #mountl-help (cat "\nDie Mountlist enthaelt die Einträge von\n"
  238.                        " 12  HF-Units. Das Programm benoetigt sie in DEVS:\n"
  239.                   )
  240. )
  241.  
  242. (set #bgui-txt (cat "\n Kopiere die BGUI-Library nach LIBS:\n"
  243.                )
  244. )
  245.  
  246. (set #bgui-help (cat "\n Die BGUI-Library ist fuer die Oberfläche des\n"
  247.                      " HFMounters zustaendig. Sie gehört nach LIBS:\n"
  248.                 )
  249. )
  250.  
  251. (set #Pathdriver-Txt (cat "Wähle das Zielverzeichnis\n"
  252.                           "fuer den Beispielsdosdriver.\n"
  253.                      )
  254. )
  255.  
  256. (set #Pathdriver-Help (cat "\n Hier kannst Du das Zielverzeichnis\n"
  257.                            " fuer einen Beispielsdosdriver angeben.\n\n"
  258.                            " Default ist SYS:storage/dosdrivers/\n\n\n"
  259.                        @askdir-help
  260.                       )
  261. )
  262.  
  263. (set #driver-txt (cat "\n Kopiere Beispielsdosdriver \n"
  264.                  )
  265. )
  266.  
  267.  
  268. (set #driver-help (cat "\n Es wird ein Beispielsdosdriver kopiert\n"
  269.                        " der dupliziert und umbenannt werden kann.\n\n"
  270.                        " Infos zu Dosdrivern findest Du im AmigaOS Dos-Manual\n"
  271.                   )
  272. )
  273.  
  274.  
  275. (set #Pathguide-Txt (cat "\n Wähle das Zielverzeichnis\n"
  276.                          " fuer den Amigaguide Hilfstext.\n"
  277.                     )
  278. )
  279.  
  280. (set #Pathguide-Help (cat "\n Hier kannst Du das Zielverzeichnis\n"
  281.                           " fuer den HFM.guide angeben.\n\n"
  282.                           " Default ist locale:help/deutsch/\n\n\n"
  283.                       @askdir-help
  284.                      )
  285. )
  286.  
  287. (set #guide-txt (cat "\n Kopiere Amigaguide-Hilfstext nach: \n\n"
  288.                 )
  289. )
  290.  
  291. (set #guide-help (cat "\n Hier wird die Dokumentation im Amigaguide-Format\n"
  292.                       " in das Verzeichnis Deiner Wahl kopiert.\n"
  293.                       " Falls am HFMounter etwas unklar sein sollte,\n"
  294.                       " kannst Du dort Informationen zum Programm finden\n"
  295.                  )
  296. )
  297.  
  298. (set #USER-STARTUP-TXT (cat "\n Gib bitte nun an, wo die Unit-files für HFMounter\n"
  299.                             " abgelegt werden sollen. Denke daran, dass dort\n"
  300.                             " ein Maximum von 11 MB Platz sein muss."
  301.                        )
  302. )
  303.  
  304. (set #Assign-Help-Txt (cat "\n Es werden 3 Zeilen an die USer-Startup angehaengt, um\n"
  305.                            " das noetige ASSIGN fuer HFMounter permanent zu machen.\n"
  306.                       @startup-help
  307.                      )
  308. )
  309.  
  310. ))
  311.  
  312. ;
  313. ; Main Script
  314. ;
  315. (if (< osver 38)  (abort #MinReqOS) )
  316. (message #Intro-txt)
  317.  
  318. (complete 0)
  319.  
  320. (set target (askdir (prompt (cat #Path-Txt))
  321.                     (help   (cat #Path-Help))
  322.                     (default @hfm-dest)
  323.             )
  324. )
  325.  
  326. (set @hfm-dest target)
  327.  
  328. (copyfiles (prompt (cat #Copyfile-txt " " @hfm-dest))
  329.            (help @copy-files-help)
  330.            (source "c/HFM")
  331.            (dest (tackon @hfm-dest ""))
  332.            (confirm)
  333.            (infos)
  334. )
  335.  
  336. (complete 20)
  337.  
  338. (set @catdest "locale:catalogs/deutsch")
  339.  
  340. (if (= LAN 0) (copyfiles (prompt (cat #copycat-txt " " ))
  341.                               (source "catalogs/deutsch/HFM.catalog")
  342.                               (dest (tackon @catdest ""))
  343.                               (help @copy-files-help)
  344.                               (confirm)
  345.                    )
  346. )
  347.  
  348. (complete 40)
  349.  
  350. (copylib (prompt (cat #devcopy-txt " " ))
  351.                   (help (cat #devcopy-help))
  352.                   (source "devs/fmsdisk.device")
  353.                   (dest (tackon "devs:" ""))
  354.                   (confirm)
  355. )
  356.  
  357. (copyfiles (prompt (cat #mountl-txt " " ))
  358.                      (help (cat #mountl-help))
  359.                      (source "devs/hf-mountlist")
  360.                      (dest (tackon "devs:" ""))
  361.                      (confirm)
  362. )
  363.  
  364. (complete 60)
  365.  
  366. (copylib (prompt (cat #bgui-txt " " ))
  367.                    (help (cat #bgui-help))
  368.                    (source "libs/bgui.library")
  369.                    (dest (tackon "libs:" ""))
  370.                    (confirm)
  371. )
  372.  
  373. (set target (askdir (prompt (cat #Pathdriver-Txt " " ))
  374.                     (help (cat #Pathdriver-Help))
  375.                     (default "Sys:storage/dosdrivers/")
  376.                     (newpath)
  377.             )
  378. )
  379.  
  380. (complete 80)
  381.  
  382. (copyfiles (prompt (cat #driver.txt " "))
  383.                      (help (cat #driver-help))
  384.                      (source "devs/dosdrivers/HF0")
  385.                      (dest (tackon target ""))
  386.                      (infos)
  387.                      (confirm)
  388. )
  389.  
  390. (set target (askdir (prompt (cat #Pathguide-Txt))
  391.                     (help (cat #Pathguide-Help))
  392.                     (default "locale:help/deutsch/")
  393.                     (newpath)
  394.             )
  395. )
  396.  
  397. (if (= LAN 0) (copyfiles (prompt (cat #guide-txt target))
  398.                                  (help (cat #guide-help))
  399.                                  (source "HFM.guide")
  400.                                  (dest (tackon target ""))
  401.                                  (infos)
  402.                                  (confirm)
  403.                    )
  404. )
  405.  
  406. (if (= LAN 1) (copyfiles (prompt (cat #guide-txt target))
  407.                                  (help (cat #guide-help))
  408.                                  (source "HFM_e.guide")
  409.                                  (dest (tackon target ""))
  410.                                  (infos)
  411.                                  (confirm)
  412.                    )
  413. )
  414.  
  415. (complete 90)
  416.  
  417. (set target
  418.             (askdir (prompt (cat #USER-STARTUP-TXT))
  419.                     (help @askdir-help)
  420.                     (default "Sys:")
  421.                     (newpath)
  422.             )
  423. )
  424.  
  425. (startup "HFMounter"
  426.         (prompt "\n ASSIGN FMS: " target)
  427.         (help (cat #Assign-help-txt))
  428.         (command "assign FMS: "target)
  429. )
  430.  
  431. (makeassign "FMS" target)
  432.  
  433. (complete 100)
  434.  
  435. (exit "That's all, installation is finished now \n\n"
  436.       "Das wars Leute, Installation abgeschlossen.")
  437.